import allure


# 没有指定，默认是normal
@allure.feature("模块1")
@allure.story("m1子模块1")
def test_no_severity():
    pass


@allure.feature("模块2")
@allure.story("m2子模块1")
@allure.severity(allure.severity_level.TRIVIAL)
def test_trivial_severity():
    pass


@allure.feature("模块3")
@allure.story("m3子模块1")
@allure.severity(allure.severity_level.NORMAL)
def test_normal_severity():
    pass


@allure.feature("模块4")
@allure.story("m4子模块1")
@allure.severity(allure.severity_level.NORMAL)
class TestCase:
    def test_inclass_normal_severity(self):
        pass

    # 优先级就近原则
    @allure.severity(allure.severity_level.CRITICAL)
    def test_inclass_critical_severity(self):
        pass